package com.limou.mapper;

import com.limou.pojo.EmpJob;
import com.limou.pojo.Employee;
import com.limou.pojo.User;

import java.util.List;

public interface EmployeeMapper {

    //    查询显示所有员工
    List<Employee> findAllEmployee();

    //添加用户
    void addEmployee(Employee employee);

    //通过id查找
    Employee findAllEmployeeById(int id);

    //修改员工信息
    void updateEmployee(Employee employee);

    //删除员工
    void deleteEmployee(Employee employee);

    //通过username查找员工
    List<Employee> findEmployeeByName(String name);

    //查找员工工作
    List<Employee> findEmployeeJob();

    //删除中间表里，此员工的信息
    void deleteEmpJobById(int empId);

    void insertEmpJobById(EmpJob empJob);
}
